package main

import (
	"fmt"
)

func main () {
	// 思考题，创建一个二维数组并使用它
	matrix := [3][3]int{
		{1,2,3}, 
		{4,5,6}, 
		{7,8,9},
	}
	fmt.Println(matrix)

	for i, v := range matrix {
		fmt.Println("line", i, ":", v)
	}

	for line := range matrix {
		for i, v := range matrix[line] {
			fmt.Printf("(%v,%v) %v\n", line, i, v)
		}
	}
}